//
//  Bootstrapper.swift
//  App_Common
//
//  Created by 蒋晨成 on 2021/12/24.
//

import Foundation
import Standard

public enum Bootstrapper {}

extension Bootstrapper: Bootable {
    @DelayInit
    public private(set) static var environment: Standard.Environmental

    public static func register(environment: Standard.Environmental) -> Self.Type {
        self.environment = environment
        return self
    }

    public static func bootstrap() -> Self.Type {
        guard environment is Environmental else { fatalError("Environmental type error") }
//        AppAnalysis.bootstrap()
        return self
    }
}
